﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Todo.Models;

namespace Todo.Services
{
    public interface IDataService
    {
        Task<IEnumerable<TodoItem>> GetItemsAsync();

        Task<TodoItem> GetItemAsync(int id);

        Task AddItemAsync(TodoItem item);
        Task UpdateItemAsync(TodoItem item);
    }
}
